import request from '../request'

import type { IGetInOrOut } from '@/types/modules/home'

enum homeApiEnum {
  navigationStatisticsGetInOrOutStatistics = 'wms/navigationStatistics/getInOrOutStatistics',
  navigationStatisticsGetRegionStockStatistics = 'wms/navigationStatistics/getRegionStockStatistics',
  navigationStatisticsGetPlanOrStockStatistics = 'wms/navigationStatistics/getPlanOrStockStatistics',
  documentInquiryListingState = 'wms/documentInquiry/listingState',
  documentInquiryQueryDetail = 'wms/documentInquiry/queryDetail',
}
/**获取出入库量统计数 */
export const navigationStatisticsGetInOrOutStatistics = (data?: any) => request.GET<IGetInOrOut[]>({ url: homeApiEnum.navigationStatisticsGetInOrOutStatistics, data }) //

/**库存容量 */
export const navigationStatisticsGetRegionStockStatistics = (data?: any) => request.GET({ url: homeApiEnum.navigationStatisticsGetRegionStockStatistics, data }) //

export const navigationStatisticsGetPlanOrStockStatistics = (data?: any) => request.POST({ url: homeApiEnum.navigationStatisticsGetPlanOrStockStatistics, data }) //  计划件数

export const documentInquiryListingState = (data?: any) => request.GET({ url: homeApiEnum.documentInquiryListingState, data }) //  单据类型查询

export const documentInquiryQueryDetail = (data?: any) => request.POST({ url: homeApiEnum.documentInquiryQueryDetail, data }) //  单号查询
